<?php 
if($mostrar==1)
{
echo $this->Form->input('finca_base_id_oculto',array('id'=>'finca_base_id_oculto','value'=>$finca_base_id,'type'=>'hidden'));
$fb_id=$this->For->id('',$finca_base_id);
$event2=$this->For->ajax('','TARJETAPRODUCTIVA/nueva_finca_modificar/'.$fb_id.'/2/1','ver_datos_productivos',null,null);

echo $this->For->filset('Rubros a Cultivar',1,0,null,1);
?>
	<table border='0' cellpadding='15' cellspacing='15' width='95%' align='center' style="border:10;">
				<tr>
					<td class="labeln" width='150px'>Sector Productivo:</td>
					<td><?php 
$event=$this->For->ajax('','TARJETAPRODUCTIVA/ver_sub_sector','car_sub_sector',array('sector_id'));
 echo  $this->For->select('','sector_id',11,'selectn',$lista_sector_productivo,'','',0,1,'','onChange',$event,null,null,null);?></td>
				<tr>
				</tr>
					<td class="labeln">Sub Sector:</td>
					<td id="car_sub_sector"><?php echo $this->For->select('','sub_sector_id',11,'selectn',null,'','',0,1,'',NULL,NULL,NULL,NULL,NULL);

// echo $this->Form->select('sub_sector_id', null,array('id'=>'sub_sector_id','class'=>'selectn'));?></td>
				</tr>
				<tr>
					<td class="labeln">Rubro Unificado:</td>
					<td id="car_rubro_unificado"><?php  echo $this->For->select('','rubro_unificado_id',11,'selectn',null,'','',0,1,'',NULL,NULL,NULL,NULL,NULL);?></td>
				</tr>
				<tr>
					<td class="labeln">Rubro:</td>
					<td id="car_rubro"><?php  echo $this->For->select('','rubro_id',11,'selectn',null,'','',0,1,'',NULL,NULL,NULL,NULL,NULL);
// echo $this->Form->select('rubro_id', null,array('id'=>'rubro_id','class'=>'selectn'));?></td>
				</tr>

				<tr>
					<td class="labeln">HA Productivas:</td>
					<td><?php echo $this->For->input('','hectarias',6,'numerico','input',0,4,$productivas,0,1);?></td>
				</tr>
				<tr>
					<td class="labeln">HA Disponibles:</td>
					<td><?php echo $this->For->input('','disponibles',6,'numerico','input',0,4,$productivas,1,0);?></td>
				</tr>
				<tr>
					<td colspan='2'><?php 
$event=$this->For->ajax('','TARJETAPRODUCTIVA/cargar_rubro','ver_rubros_asignados',array('finca_base_id_oculto','sector_id','sub_sector_id','rubro_unificado_id','rubro_id','hectarias'));
?>  
<input type='button' onClick="<?=$event?>" value="Cargar Rubro"/></td></tr><tr>	<td colspan='2'>
<?php 
//$event=$this->For->ajax('','TARJETAPRODUCTIVA/nueva_finca','ver_datos_productivos',array('finca_base_id_oculto'));
?>  
<input type='button' onClick="<?=$event2?>" value="Cargar Otra Unidad Productiva"/>
</td>
				</tr>
<?php
/*
				<tr>
					<td colspan='2'>
<?php echo $this->Form->button('Cargar Rubro',array('onclick'=>"input_remoto_seis('TARJETAPRODUCTIVA/cargar_rubro','ver_rubros_asignados','finca_base_id','sector_id','sub_sector_id','rubro_unificado_id','rubro_id','hectarias')"));?>
<?php echo $this->Form->button('Cargar Otra Unidad Productiva',array('onclick'=>$event2));?></td>
				</tr>
*/
?>
		</table>
<?=$this->For->filset();
}
?>
<div id='ver_rubros_asignados'> </div>
